/*
package cn.zs.middleware.config.jetcache;

import com.alicp.jetcache.support.AbstractValueEncoder;
import com.fasterxml.jackson.databind.ObjectMapper;





public class JacksonValueEncoder extends AbstractValueEncoder {

    private static final ObjectMapper objectMapper = new ObjectMapper();

    public JacksonValueEncoder() {
        super(true); // 传true，表示使用identity number
        System.out.println("JacksonValueEncoder created!");
    }


    @Override
    public byte[] apply(Object value) {
        if (value == null) {
            return null;
        }
        try {
            return objectMapper.writeValueAsBytes(value);
        } catch (Exception e) {
            throw new RuntimeException("Jackson序列化失败", e);
        }
    }
}
*/
